<?php

$language = "en";
$showhidden = FALSE; // FALSE or TRUE (show hidden files)
$permtype = 1; // 1 or 2 (1 = show permissions long format / 2 = show permissions short format[octal]
$recursivedirs = TRUE; // show real size of folders or no size (TRUE OR FALSE - But �TRUE� slows the script extreamly down, depending on the mass of subfolders)

###################### DONT CHANGE ANYTHING BELOW!!! ######################

if (($language=="")OR(!file_exists('./lang/'.$language.'.php'))){$language = "en";}

// get absolute path (where this script is located) and add our download folder
$abspath = dirname($_SERVER['SCRIPT_FILENAME'])."/test/";
// $abspath="/opt/lampp/htdocs/";

// get relative path (where this script is located)
$relpath = dirname($_SERVER['PHP_SELF']);

// version of this application
define("VERNUM", "0.7.9");


if (strtoupper(substr(PHP_OS, 0, 3)) === 'Linux') {
    // get php user and group only for linux
    $phpuser_tmp = posix_getpwuid(posix_geteuid());
    $phpgroup_tmp = posix_getgrgid(posix_getegid());
    $phpuser = $phpuser_tmp['name'];
    $phpgroup = $phpgroup_tmp['name'];
}


// get php version � only versions equal to or above 5.1 allow to create and expand zip archives
// you maybe need to install the PECL zip Package (only if it is not already bundled with your php version)
// just activate it in your php.ini
if (version_compare(phpversion(), "5.1.0", ">=")) {
  $zipwrite = TRUE;
} else {
  $zipwrite = FALSE;
}
$ziploaded = extension_loaded("zip");
if($ziploaded == TRUE && $zipwrite == TRUE){
    $zip = "RW";
}
?>
